package com.dynabook.ems.task;

import com.dynabook.ems.service.EbsSyncService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class EbsTask {
    @Resource
    private EbsSyncService ebsSyncService;

    @Scheduled(cron = "0 0 3 * * *")
    public void executeTask() {
        ebsSyncService.executeTimingTaskFromEbs();
    }

}
